package com.glela.packet.service;

import com.glela.domain.vo.PerRedPacketVo;
import com.glela.packet.model.RedPacketOwner;

import java.util.List;


public interface RedPacketOwnerService {
  
  List<PerRedPacketVo> showRedPacketList(Long userId, int type, Integer startIndex, Integer pageSize,String clientType);
  		  
  boolean saveRedPacketOwner(RedPacketOwner redPacketOwner);

  int queryRedPacketSize(Long userId, int type);

  boolean batchSaveRedPacketOwner(List<RedPacketOwner> list);

  boolean batchUpdateRedPacketOwner(List<RedPacketOwner> list);

  RedPacketOwner getRedPacketOwnerById(int id);

  boolean updateRedPacketOwner(RedPacketOwner redPacketOwner);

  boolean updateRedPacketOwnerUseTime(RedPacketOwner redPacketOwner);

  RedPacketOwner getByRedPacketShareHistId(int redPacketShareHistId);

  List<RedPacketOwner> listWillInvalidRedPacketByUserId(int userId);

  RedPacketOwner getRedPacketOwner(int userId, short redPacketStatus, int lastOwnerId);

}
